package com.ls.herostory.session;

import io.netty.channel.socket.nio.NioSocketChannel;

/**
 * @author liangsu
 * @version v1.0
 * @Description
 * @Date 2020/10/12 10:12
 * @since
 */
public class Session{
    private int userId;
    private String userName;
    private String heroAvatar;

    private int hp = 100;

    private NioSocketChannel channel;

    private MoveState moveState = new MoveState();

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public NioSocketChannel getChannel() {
        return channel;
    }

    public void setChannel(NioSocketChannel channel) {
        this.channel = channel;
    }

    public String getHeroAvatar() {
        return heroAvatar;
    }

    public void setHeroAvatar(String heroAvatar) {
        this.heroAvatar = heroAvatar;
    }

    public MoveState getMoveState() {
        return moveState;
    }

    public void setMoveState(MoveState moveState) {
        this.moveState = moveState;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }
}
